home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 5 / Skunkware 5.iso / src / X11 / Fresco / build / Unix / config / cf / Project.tmpl < prev    next >
Text File  |  1995-07-12  |  29KB  |  1,117 lines

  1. XCOMM ----------------------------------------------------------------------
  2. XCOMM X Window System Build Parameters and Rules
  3. XCOMM $XConsortium: Project.tmpl,v 1.248 95/01/06 19:12:51 gildea Exp $
  4.  
  5. /***************************************************************************
  6.  *                                                                         *
  7.  *                            DEFAULT DEFINITONS                           *
  8.  *                                                                         *
  9.  * The following section contains defaults for things that can             *
  10.  * overridden in the various *.cf and site.def files.  DO NOT EDIT!        *
  11.  *                                                                         *
  12.  **************************************************************************/
  13.  
  14. #define ProjectX        6    /* do *not* change this line */
  15.  
  16. /* The following project-specific rules are defined at the end of this file:
  17.  *
  18.  * InstallAppDefaults        (class)
  19.  * InstallAppDefaultsLong    (file,class)
  20.  * MakeFontsDir            (deplist)
  21.  * MakeFonts            ()
  22.  * InstallFontObjs        (objs,dest)
  23.  * InstallFonts            (dest)
  24.  * InstallFontAliases        (dest)
  25.  * FontSrc            (basename)
  26.  * FontBaseObj            (basename)
  27.  * InstallFontScale        (dest)
  28.  * UncompressedFontTarget    (basename)
  29.  * CompressedFontTarget        (basename)
  30.  * FontTarget            (basename)
  31.  * FontObj            (basename)
  32.  */
  33.  
  34. /*
  35.  * X-specific things
  36.  */
  37. #ifndef HasXServer
  38. #define HasXServer        YES
  39. #endif
  40. #ifndef BuildServer
  41. #define BuildServer        HasXServer
  42. #endif
  43. #ifndef XServerThreaded
  44. #define XServerThreaded        NO    /* turn on threads in merged server */
  45. #endif
  46. #ifndef BuildFontServer
  47. #define BuildFontServer        YES
  48. #endif
  49. #ifndef BuildFonts
  50. #define BuildFonts        BuildServer
  51. #endif
  52. #ifndef BuildPhigs
  53. #define BuildPhigs        NO
  54. #endif
  55. #ifndef BuildPexExt
  56. #define BuildPexExt        YES
  57. #endif
  58. #ifndef BuildXInputExt
  59. #define BuildXInputExt        NO
  60. #endif
  61. #ifndef BuildDIS
  62. #define BuildDIS        NO
  63. #endif
  64. #ifndef BuildXIE
  65. #define BuildXIE        YES
  66. #endif
  67. #ifndef BuildXKB
  68. #define BuildXKB        NO
  69. #endif
  70. #ifndef BuildXKBlib
  71. #define BuildXKBlib        NO    /* not yet a standard part of Xlib */
  72. #endif
  73. #ifndef BuildFresco
  74. #if HasCplusplus 
  75. #define BuildFresco        YES
  76. #else
  77. #define BuildFresco        NO
  78. #endif
  79. #endif
  80. #ifndef InstallLibManPages
  81. #define InstallLibManPages    YES
  82. #endif
  83. #ifndef InstallXtermSetUID
  84. #define InstallXtermSetUID    YES    /* xterm needs to be set uid */
  85. #endif
  86. #ifndef InstallXinitConfig
  87. #define InstallXinitConfig    NO    /* install sample xinit config */
  88. #endif
  89. #ifndef InstallXdmConfig
  90. #define InstallXdmConfig    NO    /* install sample xdm config */
  91. #endif
  92. #ifndef XdmServersType            /* what Xservers files to use */
  93. #if BuildServer
  94. #define XdmServersType ws
  95. #else
  96. #define XdmServersType fs
  97. #endif
  98. #endif
  99. #ifndef InstallFSConfig
  100. #define InstallFSConfig        NO    /* install sample fs config */
  101. #endif
  102. #ifndef InstallAppDefFiles
  103. #define InstallAppDefFiles    YES    /* install application defaults */
  104. #endif
  105. #ifndef ThreadedX
  106. #if HasPosixThreads || HasCThreads
  107. #define ThreadedX        YES    /* multi-threaded libraries */
  108. #else
  109. #define ThreadedX        NO
  110. #endif
  111. #endif
  112. #ifndef ThreadedProject
  113. #define ThreadedProject ThreadedX
  114. #endif
  115. #ifndef HasWChar32
  116. #define HasWChar32        SystemV4
  117. #endif
  118. #ifndef HasXdmAuth
  119. #define HasXdmAuth        NO    /* if you can not use XDM-AUTH* */
  120. #endif
  121. #ifndef PrimaryScreenResolution
  122. #define PrimaryScreenResolution 72        /* a common resolution */
  123. #endif
  124. #ifndef DefaultFontPath
  125. #if PrimaryScreenResolution < 88        /* (75 + 100) / 2 */
  126. #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/Type1/,$(FONTDIR)/75dpi/,$(FONTDIR)/100dpi/
  127. #else
  128. #define DefaultFontPath $(FONTDIR)/misc/,$(FONTDIR)/Speedo/,$(FONTDIR)/Type1/,$(FONTDIR)/100dpi/,$(FONTDIR)/75dpi/
  129. #endif
  130. #endif
  131. #ifndef DefaultRGBDatabase
  132. #define DefaultRGBDatabase $(LIBDIR)/rgb
  133. #endif
  134. #ifndef UseRgbTxt
  135. #define UseRgbTxt        NO    /* default is to compile with dbm */
  136. #endif
  137. #ifndef FontCompilerFlags
  138. #define FontCompilerFlags -t
  139. #endif
  140. #ifndef ConnectionFlags
  141. #if HasStreams
  142. #define ConnectionFlags -DSTREAMSCONN
  143. #else
  144. #if HasDECnet
  145. #define ConnectionFlags -DTCPCONN -DUNIXCONN -DDNETCONN
  146. #else
  147. #define ConnectionFlags -DTCPCONN -DUNIXCONN
  148. #endif
  149. #endif
  150. #endif
  151. #ifndef ProjectThreadsDefines
  152. #define ProjectThreadsDefines -DXTHREADS
  153. #endif
  154. #ifndef FontOSDefines
  155. #define FontOSDefines /**/
  156. #endif
  157. #ifndef FontDefines
  158. #define FontDefines -DFONT_SNF -DFONT_BDF -DFONT_PCF -DCOMPRESSED_FONTS FontOSDefines
  159. #endif
  160. #ifndef XawI18nDefines
  161. #if SystemV4
  162. #define XawI18nDefines -DHAS_WCTYPE_H
  163. #else
  164. #define XawI18nDefines -DUSE_XWCHAR_STRING
  165. #endif
  166. #endif
  167. #ifndef ExtensionOSDefines
  168. #define ExtensionOSDefines /**/
  169. #endif
  170. #ifndef ExtensionDefines
  171. #ifndef PexDefines
  172. #if BuildPexExt
  173. #define PexDefines -DPEXEXT
  174. #else
  175. #define PexDefines /**/
  176. #endif
  177. #endif
  178. #ifndef ShmDefines
  179. #if HasShm
  180. #define ShmDefines -DMITSHM
  181. #else
  182. #define ShmDefines /**/
  183. #endif
  184. #endif
  185. #ifndef XInputDefines
  186. #if BuildXInputExt
  187. #define XInputDefines -DXINPUT
  188. #else
  189. #define XInputDefines /**/
  190. #endif
  191. #endif
  192. #ifndef XieDefines
  193. #if BuildXIE
  194. #define XieDefines -DXIE
  195. #else
  196. #define XieDefines /**/
  197. #endif
  198. #endif
  199. #ifndef XkbDefines
  200. #if BuildXKB
  201. #define XkbDefines -DXKB
  202. #else
  203. #define XkbDefines /**/
  204. #endif
  205. #endif
  206. #ifndef LbxDefines
  207. #if BuildLBX
  208. #define LbxDefines -DLBX
  209. #else
  210. #define LbxDefines /**/
  211. #endif
  212. #endif
  213. #ifndef BigReqDefines
  214. #if !BuildLBX
  215. #define BigReqDefines -DBIGREQS
  216. #else
  217. #define BigReqDefines /**/    /* LBX doesn't work with BIG-REQUESTS yet */
  218. #endif
  219. #endif
  220. #ifndef SitePervasiveExtensionDefines
  221. #define SitePervasiveExtensionDefines /**/
  222. #endif
  223. #ifndef PervasiveExtensionDefines
  224. #define PervasiveExtensionDefines -DSHAPE XInputDefines XkbDefines LbxDefines SitePervasiveExtensionDefines
  225. #endif
  226. #ifndef SiteExtensionDefines
  227. #define SiteExtensionDefines /**/
  228. #endif
  229. #ifndef BaseExtensionDefines
  230. #define BaseExtensionDefines -DMULTIBUFFER -DMITMISC -DXTEST -DXSYNC -DXCMISC PexDefines ShmDefines XieDefines BigReqDefines SiteExtensionDefines
  231. #endif
  232. #define ExtensionDefines BaseExtensionDefines ExtensionOSDefines
  233. #endif
  234. #ifndef ServerXdmcpDefines
  235. #define ServerXdmcpDefines -DXDMCP
  236. #endif
  237. #ifndef ServerOSDefines
  238. #define ServerOSDefines /**/
  239. #endif
  240. #if HasKrb5
  241. #ifndef Krb5Defines
  242. #define Krb5Defines -DK5AUTH
  243. #endif
  244. #else
  245. #define Krb5Defines /**/
  246. #endif
  247. #ifndef ServerExtraDefines
  248. #define ServerExtraDefines /* -DPIXPRIV */
  249. #endif
  250. #ifndef ServerDefines
  251. #define ServerDefines StandardDefines PervasiveExtensionDefines ServerExtraDefines
  252. #endif
  253. #ifndef PexDipexDefines
  254. #define PexDipexDefines /**/
  255. #endif
  256. #ifndef PexDdpexDefines
  257. #define PexDdpexDefines /**/
  258. #endif
  259. #ifndef PexPhigsDefines
  260. #ifndef PexShmIPC
  261. #define PexShmIPC HasShm
  262. #endif
  263. #if PexShmIPC
  264. #define PexPhigsDefines /**/
  265. #else
  266. #define PexPhigsDefines -DPEX_API_SOCKET_IPC
  267. #endif
  268. #endif
  269. #ifndef PexClientDefines
  270. #define PexClientDefines -DPEX_SI_PHIGS
  271. #endif
  272. #ifndef PhigsInclude
  273. #ifdef UseInstalled
  274. #define PhigsInclude -I$(INCDIR)
  275. #else
  276. #define PhigsInclude -I$(BUILDINCDIR)
  277. #endif
  278. #endif
  279. #ifndef PexCDebugFlags
  280. #define PexCDebugFlags DebuggableCDebugFlags
  281. #endif
  282. #ifndef PexCCOptions
  283. #ifdef LibraryCCOptions
  284. #define PexCCOptions LibraryCCOptions
  285. #else
  286. #define PexCCOptions DefaultCCOptions
  287. #endif
  288. #endif
  289. #ifndef DefaultFSConfigFile
  290. #define DefaultFSConfigFile $(LIBDIR)/fs/config
  291. #endif
  292. #ifndef BinDir
  293. #ifdef ProjectRoot
  294. #define BinDir Concat(ProjectRoot,/bin)
  295. #else
  296. #define BinDir /usr/bin/X11
  297. #endif
  298. #endif
  299. #ifndef BuildIncRoot
  300. #define BuildIncRoot $(TOP)
  301. #endif
  302. #ifndef BuildIncDir
  303. #define BuildIncDir $(BUILDINCROOT)/Fresco
  304. #endif
  305. #ifndef BuildIncTop
  306. #define BuildIncTop ..        /* relative to BuildIncDir */
  307. #endif
  308. #ifndef BuildLibDir
  309. #define BuildLibDir $(TOP)/build/Unix/lib
  310. #endif
  311. #ifndef BuildLibTop
  312. #define BuildLibTop ../../..    /* relative to BuildLibDir */
  313. #endif
  314. #ifndef LibDir
  315. #define LibDir $(USRLIBDIR)/X11
  316. #endif
  317. #ifndef ConfigDir
  318. #define ConfigDir $(LIBDIR)/config/Fresco
  319. #endif
  320. #ifndef FontDir
  321. #define FontDir $(LIBDIR)/fonts
  322. #endif
  323. #ifndef AdmDir
  324. #define AdmDir /usr/adm
  325. #endif
  326. #ifndef XinitDir
  327. #define XinitDir $(LIBDIR)/xinit
  328. #endif
  329. #ifndef XdmDir
  330. #define XdmDir $(LIBDIR)/xdm
  331. #endif
  332. #ifndef XdmConfigurationSubdirectory        /* under xdm sources */
  333. #define XdmConfigurationSubdirectory config
  334. #endif
  335. #ifndef TwmDir
  336. #define TwmDir $(LIBDIR)/twm
  337. #endif
  338. #ifndef XsmDir
  339. #define XsmDir $(LIBDIR)/xsm
  340. #endif
  341. #ifndef NlsDir
  342. #define NlsDir $(LIBDIR)/nls
  343. #endif
  344. #ifndef XLocaleDir
  345. #define XLocaleDir $(LIBDIR)/locale
  346. #endif
  347. #ifndef PexApiDir
  348. #define PexApiDir $(LIBDIR)/PEX
  349. #endif
  350. #ifndef XFileSearchPathBase
  351. /* avoid SCCS keyword */
  352. #define XFileSearchPathBase Concat4($(LIBDIR)/%L/%T/%N%C,%S:$(LIBDIR)/%l/%T/%N%C,%S:$(LIBDIR)/%T/%N%C,%S:$(LIBDIR)/%L/%T/%N%S:$(LIBDIR)/%l/%T/%N%S:$(LIBDIR)/%T/%N%S)
  353. #endif
  354. #ifndef XFileSearchPathDefault
  355. #ifdef XAppLoadDir
  356. /* avoid SCCS keyword */
  357. #define XFileSearchPathDefault XAppLoadDir/Concat(%N%C,%S):XAppLoadDir/%N%S:XFileSearchPathBase
  358. #else
  359. #define XFileSearchPathDefault XFileSearchPathBase
  360. #endif
  361. #endif
  362. #ifndef XAppLoadDir
  363. #define XAppLoadDir $(LIBDIR)/app-defaults
  364. #endif
  365. #ifndef XtErrorPrefix
  366. #define XtErrorPrefix /* as empty string */
  367. #endif
  368. #ifndef XtExtraDefines
  369. #define XtExtraDefines /* as empty string */
  370. #endif
  371. #ifndef XtWarningPrefix
  372. #define XtWarningPrefix /* as empty string */
  373. #endif
  374. #ifndef OsNameDefines
  375. #define OsNameDefines /* as nothing */
  376. #endif
  377. #ifndef DefaultUserPath            /* for xdm */
  378. #define DefaultUserPath :/bin:/usr/bin:$(BINDIR):/usr/ucb
  379. #endif
  380. #ifndef DefaultSystemPath        /* for xdm */
  381. #define DefaultSystemPath /etc:/bin:/usr/bin:$(BINDIR):/usr/ucb
  382. #endif
  383. #ifndef DefaultSystemShell        /* for xdm to set in SHELL */
  384. #define DefaultSystemShell BourneShell
  385. #endif
  386. #ifndef ContribDir
  387. #define ContribDir $(TOP)/../contrib    /* contrib is outside core tree */
  388. #endif
  389. #ifndef UnsupportedDir
  390. #define UnsupportedDir $(TOP)/unsupported
  391. #endif
  392. #ifndef AllocateLocalDefines
  393. #define AllocateLocalDefines /**/
  394. #endif
  395.  
  396. #ifndef ForceNormalLib
  397. #define ForceNormalLib (HasGcc && !HasGcc2)
  398. #endif
  399.  
  400. XCOMM -----------------------------------------------------------------------
  401. XCOMM X Window System make variables; these need to be coordinated with rules
  402.  
  403. /*
  404.  * This list must be reflected in the DIRS_TO_BUILD list in the top-level
  405.  * Makefile.
  406.  */
  407.            BINDIR = BinDir        /* programs */
  408.      BUILDINCROOT = BuildIncRoot    /* base of build loc */
  409.       BUILDINCDIR = BuildIncDir        /* built headers */
  410.       BUILDINCTOP = BuildIncTop        /* top relative to BUILDINCDIR */
  411.       BUILDLIBDIR = BuildLibDir        /* built libraries */
  412.       BUILDLIBTOP = BuildLibTop        /* top relative to BUILDLIBDIR */
  413.            INCDIR = $(INCROOT)/Fresco    /* header files, must end in Fresco */
  414.            ADMDIR = AdmDir        /* server log files */
  415.            LIBDIR = LibDir        /* rgb, XErrorDB, etc. */
  416.  
  417.           FONTDIR = FontDir        /* font directories */
  418.          XINITDIR = XinitDir        /* xinit config files */
  419.            XDMDIR = XdmDir        /* xdm config files */
  420.            TWMDIR = TwmDir        /* twm config files */
  421.            XSMDIR = XsmDir        /* xsm config files */
  422.            NLSDIR = NlsDir        /* nls files */
  423.        XLOCALEDIR = XLocaleDir        /* locale files */
  424.         PEXAPIDIR = PexApiDir        /* PEX support files */
  425.       XAPPLOADDIR = XAppLoadDir        /* application default resource dir */
  426.        FONTCFLAGS = FontCompilerFlags
  427.  
  428.      INSTAPPFLAGS = $(INSTDATFLAGS)    /* XXX - this should go away - XXX */
  429.  
  430. #ifdef UseInstalled
  431.               RGB = rgb            /* assume BINDIR in path */
  432.             FONTC = bdftopcf        /* assume BINDIR in path */
  433.         MKFONTDIR = mkfontdir        /* assume BINDIR in path */
  434. #else
  435.               RGB = $(RGBSRC)/rgb
  436.             FONTC = $(BDFTOPCFSRC)/bdftopcf
  437.         MKFONTDIR = $(MKFONTDIRSRC)/mkfontdir
  438. #endif
  439.  
  440.        DOCUTILSRC = $(TOP)/doc/util
  441.        XDOCMACROS = $(DOCUTILSRC)/macros.t
  442.        XIDXMACROS = $(DOCUTILSRC)/indexmacros.t
  443.        PROGRAMSRC = $(TOP)/programs
  444.            LIBSRC = $(TOP)/lib
  445.           FONTSRC = $(TOP)/fonts
  446.        INCLUDESRC = $(TOP)/X11
  447.         SERVERSRC = $(TOP)/programs/Xserver
  448.        CONTRIBSRC = ContribDir
  449.    UNSUPPORTEDSRC = UnsupportedDir
  450.            DOCSRC = $(TOP)/doc
  451.            RGBSRC = $(TOP)/programs/rgb
  452.       BDFTOPCFSRC = $(PROGRAMSRC)/bdftopcf
  453.      MKFONTDIRSRC = $(PROGRAMSRC)/mkfontdir
  454.     FONTSERVERSRC = $(PROGRAMSRC)/xfs
  455.        FONTINCSRC = $(TOP)/include/fonts
  456.         EXTINCSRC = $(TOP)/include/extensions
  457.      TRANSCOMMSRC = $(LIBSRC)/xtrans
  458.    TRANS_INCLUDES = -I$(TRANSCOMMSRC)
  459.  
  460. #ifndef ShLibIncludeFile
  461. /* need this to make ANSI-style preprocessors happy */
  462. #define ShLibIncludeFile <noop.rules>
  463. #endif
  464.  
  465. #include ShLibIncludeFile
  466.  
  467. #ifndef SharedLibX11
  468. #define SharedLibX11 HasSharedLibraries
  469. #endif
  470. #ifndef NormalLibX11
  471. #define NormalLibX11 (!SharedLibX11 | ForceNormalLib)
  472. #endif
  473. #ifndef DebugLibX11
  474. #define DebugLibX11        NO    /* debugged X library */
  475. #endif
  476. #ifndef ProfileLibX11
  477. #define ProfileLibX11        NO    /* profiled X library */
  478. #endif
  479.           XLIBSRC = $(LIBSRC)/X11
  480. #if SharedLibX11
  481. #ifndef SharedX11Rev
  482. #define SharedX11Rev 6.0
  483. #endif
  484. #if BuildXKBlib
  485. SharedLibReferences(XONLY,X11kb,$(XLIBSRC),SOXLIBREV,SharedX11Rev)
  486. #else
  487. SharedLibReferences(XONLY,X11,$(XLIBSRC),SOXLIBREV,SharedX11Rev)
  488. #endif
  489. #else
  490. #if BuildXKBlib
  491. UnsharedLibReferences(XONLY,X11kb,$(XLIBSRC))
  492. #else
  493. UnsharedLibReferences(XONLY,X11,$(XLIBSRC))
  494. #endif
  495. #endif
  496.          XLIBONLY = $(XONLYLIB)
  497.  
  498. #ifndef SharedLibXext
  499. #define SharedLibXext HasSharedLibraries
  500. #endif
  501. #ifndef NormalLibXext
  502. #define NormalLibXext (!SharedLibXext | ForceNormalLib)
  503. #endif
  504. #ifndef DebugLibXext
  505. #define DebugLibXext        NO    /* debugged Xext library */
  506. #endif
  507. #ifndef ProfileLibXext
  508. #define ProfileLibXext        NO    /* profiled Xext library */
  509. #endif
  510.       XEXTLIBSRC = $(LIBSRC)/Xext
  511. #if SharedLibXext
  512. #ifndef SharedXextRev
  513. #define SharedXextRev 6.0
  514. #endif
  515. SharedLibReferences(EXTENSION,Xext,$(XEXTLIBSRC),SOXEXTREV,SharedXextRev)
  516. #else
  517. UnsharedLibReferences(EXTENSION,Xext,$(XEXTLIBSRC))
  518. #endif
  519. LINTEXTENSIONLIB = $(LINTEXTENSION)
  520.           DEPXLIB = $(DEPEXTENSIONLIB) $(DEPXONLYLIB)
  521.              XLIB = $(EXTENSIONLIB) $(XONLYLIB)
  522.          LINTXLIB = $(LINTXONLYLIB)
  523.  
  524. #ifndef SharedLibXau
  525. #define SharedLibXau NO        /* don't need shared form */
  526. #endif
  527. #ifndef NormalLibXau
  528. #define NormalLibXau (!SharedLibXau | ForceNormalLib)
  529. #endif
  530. #ifndef DebugLibXau
  531. #define DebugLibXau        NO    /* debugged auth library */
  532. #endif
  533. #ifndef ProfileLibXau
  534. #define ProfileLibXau        NO    /* profiled auth library */
  535. #endif
  536.          XAUTHSRC = $(LIBSRC)/Xau
  537. #if SharedLibXau
  538. #ifndef SharedXauRev
  539. #define SharedXauRev 6.0
  540. #endif
  541. SharedLibReferences(XAUTH,Xau,$(XAUTHSRC),SOXAUTHREV,SharedXauRev)
  542. #else
  543. UnsharedLibReferences(XAUTH,Xau,$(XAUTHSRC))
  544. #endif
  545.  
  546. #ifndef SharedLibXdmcp
  547. #define SharedLibXdmcp NO    /* don't need shared form */
  548. #endif
  549. #ifndef NormalLibXdmcp
  550. #define NormalLibXdmcp (!SharedLibXdmcp | ForceNormalLib)
  551. #endif
  552. #ifndef DebugLibXdmcp
  553. #define DebugLibXdmcp        NO    /* debugged XDMCP library */
  554. #endif
  555. #ifndef ProfileLibXdmcp
  556. #define ProfileLibXdmcp        NO    /* profiled XDMCP library */
  557. #endif
  558.       XDMCPLIBSRC = $(LIBSRC)/Xdmcp
  559. #if SharedLibXdmcp
  560. #ifndef SharedXdmcpRev
  561. #define SharedXdmcpRev 6.0
  562. #endif
  563. SharedLibReferences(XDMCP,Xdmcp,$(XDMCPLIBSRC),SOXDMCPREV,SharedXdmcpRev)
  564. #else
  565. UnsharedLibReferences(XDMCP,Xdmcp,$(XDMCPLIBSRC))
  566. #endif
  567.  
  568. #ifndef SharedLibXmu
  569. #define SharedLibXmu HasSharedLibraries
  570. #endif
  571. #ifndef NormalLibXmu
  572. #define NormalLibXmu (!SharedLibXmu | ForceNormalLib)
  573. #endif
  574. #ifndef DebugLibXmu
  575. #define DebugLibXmu        NO    /* debugged Xmu library */
  576. #endif
  577. #ifndef ProfileLibXmu
  578. #define ProfileLibXmu        NO    /* profiled Xmu library */
  579. #endif
  580.            XMUSRC = $(LIBSRC)/Xmu
  581. #if SharedLibXmu
  582. #ifndef SharedXmuRev
  583. #define SharedXmuRev 6.0
  584. #endif
  585. SharedDSLibReferences(XMU,Xmu,$(XMUSRC),SOXMUREV,SharedXmuRev)
  586. #else
  587. UnsharedLibReferences(XMU,Xmu,$(XMUSRC))
  588. #endif
  589.  
  590. #ifndef SharedOldX
  591. #define SharedOldX HasSharedLibraries
  592. #endif
  593. #ifndef NormalOldX
  594. #define NormalOldX (!SharedOldX | ForceNormalLib)
  595. #endif
  596. #ifndef DebugOldX
  597. #define DebugOldX        NO    /* debugged old X library */
  598. #endif
  599. #ifndef ProfileOldX
  600. #define ProfileOldX        NO    /* profiled old X library */
  601. #endif
  602.        OLDXLIBSRC = $(LIBSRC)/oldX
  603. #if SharedOldX
  604. #ifndef SharedOldXRev
  605. #define SharedOldXRev 6.0
  606. #endif
  607. SharedLibReferences(OLDX,oldX,$(OLDXLIBSRC),SOOLDXREV,SharedOldXRev)
  608. #else
  609. UnsharedLibReferences(OLDX,oldX,$(OLDXLIBSRC))
  610. #endif
  611.  
  612. #ifndef SharedLibXt
  613. #define SharedLibXt HasSharedLibraries
  614. #endif
  615. #ifndef NormalLibXt
  616. #define NormalLibXt (!SharedLibXt | ForceNormalLib)
  617. #endif
  618. #ifndef DebugLibXt
  619. #define DebugLibXt        NO    /* debugged toolkit library */
  620. #endif
  621. #ifndef ProfileLibXt
  622. #define ProfileLibXt        NO    /* profiled toolkit library */
  623. #endif
  624.        TOOLKITSRC = $(LIBSRC)/Xt
  625. #if SharedLibXt
  626. #ifndef SharedXtRev
  627. #define SharedXtRev 6.0
  628. #endif
  629. SharedDSLibReferences(XTOOLONLY,Xt,$(TOOLKITSRC),SOXTREV,SharedXtRev)
  630. #else
  631. UnsharedLibReferences(XTOOLONLY,Xt,$(TOOLKITSRC))
  632. #endif
  633.       DEPXTOOLLIB = $(DEPXTOOLONLYLIB) $(DEPSMLIB) $(DEPICELIB)
  634.          XTOOLLIB = $(XTOOLONLYLIB) $(SMLIB) $(ICELIB)
  635.      LINTXTOOLLIB = $(LINTXTOOLONLYLIB)
  636.  
  637. #ifndef SharedLibXaw
  638. #define SharedLibXaw HasSharedLibraries
  639. #endif
  640. #ifndef NormalLibXaw
  641. #define NormalLibXaw (!SharedLibXaw | ForceNormalLib)
  642. #endif
  643. #ifndef DebugLibXaw
  644. #define DebugLibXaw        NO    /* debugged widget library */
  645. #endif
  646. #ifndef ProfileLibXaw
  647. #define ProfileLibXaw        NO    /* profiled widget library */
  648. #endif
  649.        AWIDGETSRC = $(LIBSRC)/Xaw
  650. #if SharedLibXaw
  651. #ifndef SharedXawRev
  652. #define SharedXawRev 6.0
  653. #endif
  654. SharedDSLibReferences(XAW,Xaw,$(AWIDGETSRC),SOXAWREV,SharedXawRev)
  655. #else
  656. UnsharedLibReferences(XAW,Xaw,$(AWIDGETSRC))
  657. #endif
  658.  
  659. #ifndef SharedLibXtf
  660. #define SharedLibXtf HasSharedLibraries
  661. #endif
  662. #ifndef NormalLibXtf
  663. #define NormalLibXtf (!SharedLibXtf | ForceNormalLib)
  664. #endif
  665. #ifndef DebugLibXtf
  666. #define DebugLibXtf        NO    /* debugged widget library */
  667. #endif
  668. #ifndef ProfileLibXtf
  669. #define ProfileLibXtf        NO    /* profiled widget library */
  670. #endif
  671.        XTFSRC = $(TOP)/Fresco/Xtf
  672. #if SharedLibXtf
  673. #ifndef SharedXtfRev
  674. #define SharedXtfRev 0.7
  675. #endif
  676. SharedLibReferences(XTF,Xtf,$(BUILDLIBDIR),SOXTFREV,SharedXtfRev)
  677. #else
  678. UnsharedLibReferences(XTF,Xtf,$(BUILDLIBDIR))
  679. #endif
  680.  
  681. #ifndef SharedLibFresco
  682. #define SharedLibFresco HasSharedLibraries
  683. #endif
  684. #ifndef NormalLibFresco
  685. #define NormalLibFresco (!SharedLibFresco | ForceNormalLib)
  686. #endif
  687. #ifndef DebugLibFresco
  688. #define DebugLibFresco        NO    /* debugged widget library */
  689. #endif
  690. #ifndef ProfileLibFresco
  691. #define ProfileLibFresco    NO    /* profiled widget library */
  692. #endif
  693.        FRESCOSRC = $(TOP)/Fresco
  694. #if SharedLibFresco
  695. #ifndef SharedFrescoRev
  696. #define SharedFrescoRev 0.7
  697. #endif
  698. SharedLibReferences(FRESCO,Fresco,$(BUILDLIBDIR),SOFRESCOREV,SharedFrescoRev)
  699. #else
  700. UnsharedLibReferences(FRESCO,Fresco,$(BUILDLIBDIR))
  701. #endif
  702.  
  703. #ifndef SharedLibXi
  704. #define SharedLibXi HasSharedLibraries
  705. #endif
  706. #ifndef NormalLibXi
  707. #define NormalLibXi (!SharedLibXi | ForceNormalLib)
  708. #endif
  709. #ifndef DebugLibXi
  710. #define DebugLibXi        NO    /* debugged Xi library */
  711. #endif
  712. #ifndef ProfileLibXi
  713. #define ProfileLibXi        NO    /* profiled Xi library */
  714. #endif
  715.          XILIBSRC = $(LIBSRC)/Xi
  716. #if SharedLibXi
  717. #ifndef SharedXiRev
  718. #define SharedXiRev 6.0
  719. #endif
  720. SharedLibReferences(XI,Xi,$(XILIBSRC),SOXINPUTREV,SharedXiRev)
  721. #else
  722. UnsharedLibReferences(XI,Xi,$(XILIBSRC))
  723. #endif
  724.  
  725. #ifndef SharedLibXtst
  726. #define SharedLibXtst HasSharedLibraries
  727. #endif
  728. #ifndef NormalLibXtst
  729. #define NormalLibXtst (!SharedLibXtst | ForceNormalLib)
  730. #endif
  731. #ifndef DebugLibXtst
  732. #define DebugLibXtst        NO    /* debugged Xtst library */
  733. #endif
  734. #ifndef ProfileLibXtst
  735. #define ProfileLibXtst        NO    /* profiled Xtst library */
  736. #endif
  737.       XTESTLIBSRC = $(LIBSRC)/Xtst
  738. #if SharedLibXtst
  739. #ifndef SharedXtstRev
  740. #define SharedXtstRev 6.0
  741. #endif
  742. SharedLibReferences(XTEST,Xtst,$(XTESTLIBSRC),SOXTESTREV,SharedXtstRev)
  743. #else
  744. UnsharedLibReferences(XTEST,Xtst,$(XTESTLIBSRC))
  745. #endif
  746.  
  747. #ifndef SharedLibPex
  748. #define SharedLibPex HasSharedLibraries
  749. #endif
  750. #ifndef NormalLibPex
  751. #define NormalLibPex (!SharedLibPex | ForceNormalLib)
  752. #endif
  753. #ifndef DebugLibPex
  754. #define DebugLibPex        NO    /* debugged PEX5 library */
  755. #endif
  756. #ifndef ProfileLibPex
  757. #define ProfileLibPex        NO    /* profiled PEX5 library */
  758. #endif
  759.         PEXLIBSRC = $(LIBSRC)/PEX5
  760. #if SharedLibPex
  761. #ifndef SharedPexRev
  762. #define SharedPexRev 6.0
  763. #endif
  764. SharedLibReferences(PEX,PEX5,$(PEXLIBSRC),SOPEXREV,SharedPexRev)
  765. #else
  766. UnsharedLibReferences(PEX,PEX5,$(PEXLIBSRC))
  767. #endif
  768.  
  769. #ifndef SharedLibXie
  770. #define SharedLibXie HasSharedLibraries
  771. #endif
  772. #ifndef NormalLibXie
  773. #define NormalLibXie (!SharedLibXie | ForceNormalLib)
  774. #endif
  775. #ifndef DebugLibXie
  776. #define DebugLibXie        NO    /* debugged XIE library */
  777. #endif
  778. #ifndef ProfileLibXie
  779. #define ProfileLibXie        NO    /* profiled XIE library */
  780. #endif
  781.         XIELIBSRC = $(LIBSRC)/XIE
  782. #if SharedLibXie
  783. #ifndef SharedXieRev
  784. #define SharedXieRev 6.0
  785. #endif
  786. SharedLibReferences(XIE,XIE,$(XIELIBSRC),SOXIEREV,SharedXieRev)
  787. #else
  788. UnsharedLibReferences(XIE,XIE,$(XIELIBSRC))
  789. #endif
  790.  
  791. #ifndef SharedLibPhigs
  792. #define SharedLibPhigs NO    /* XXX - haven't made it sharable yet */
  793. #endif
  794. #ifndef NormalLibPhigs
  795. #define NormalLibPhigs (!SharedLibPhigs | ForceNormalLib)
  796. #endif
  797.       PHIGSLIBSRC = $(LIBSRC)/PHIGS
  798. #if SharedLibPhigs
  799. #ifndef SharedPhigsRev
  800. #define SharedPhigsRev 6.0
  801. #endif
  802. SharedLibReferences(PHIGS,phigs,$(PHIGSLIBSRC),SOPHIGSREV,SharedPhigsRev)
  803. #else
  804. UnsharedLibReferences(PHIGS,phigs,$(PHIGSLIBSRC))
  805. #endif
  806.  
  807. UnsharedLibReferences(XBSD,Xbsd,$(LIBSRC)/Xbsd)
  808.  
  809. #ifndef SharedLibICE
  810. #define SharedLibICE HasSharedLibraries
  811. #endif
  812. #ifndef NormalLibICE
  813. #define NormalLibICE (!SharedLibICE | ForceNormalLib)
  814. #endif
  815. #ifndef DebugLibICE
  816. #define DebugLibICE        NO    /* debugged ICE library */
  817. #endif
  818. #ifndef ProfileLibICE
  819. #define ProfileLibICE        NO    /* profiled ICE library */
  820. #endif
  821.            ICESRC = $(LIBSRC)/ICE
  822. #if SharedLibICE
  823. #ifndef SharedICERev
  824. #define SharedICERev 6.0
  825. #endif
  826. SharedLibReferences(ICE,ICE,$(ICESRC),SOICEREV,SharedICERev)
  827. #else
  828. UnsharedLibReferences(ICE,ICE,$(ICESRC))
  829. #endif
  830.  
  831. #ifndef SharedLibSM
  832. #define SharedLibSM HasSharedLibraries
  833. #endif
  834. #ifndef NormalLibSM
  835. #define NormalLibSM (!SharedLibSM | ForceNormalLib)
  836. #endif
  837. #ifndef DebugLibSM
  838. #define DebugLibSM        NO    /* debugged SM library */
  839. #endif
  840. #ifndef ProfileLibSM
  841. #define ProfileLibSM        NO    /* profiled SM library */
  842. #endif
  843.             SMSRC = $(LIBSRC)/SM
  844. #if SharedLibSM
  845. #ifndef SharedSMRev
  846. #define SharedSMRev 6.0
  847. #endif
  848. SharedLibReferences(SM,SM,$(SMSRC),SOSMREV,SharedSMRev)
  849. #else
  850. UnsharedLibReferences(SM,SM,$(SMSRC))
  851. #endif
  852.  
  853. #ifndef SharedLibFS
  854. #define SharedLibFS        NO    /* for now */
  855. #endif
  856. #ifndef NormalLibFS
  857. #define NormalLibFS (!SharedLibFS | ForceNormalLib)
  858. #endif
  859. #ifndef DebugLibFS
  860. #define DebugLibFS        NO    /* debugged FS library */
  861. #endif
  862. #ifndef ProfileLibFS
  863. #define ProfileLibFS        NO    /* profiled FS library */
  864. #endif
  865.          FSLIBSRC = $(LIBSRC)/FS
  866. #if SharedLibFS
  867. #ifndef SharedFSRev
  868. #define SharedFSRev 6.0
  869. #endif
  870. SharedLibReferences(FS,FS,$(FSLIBSRC),SOFSREV,SharedFSRev)
  871. #else
  872. UnsharedLibReferences(FS,FS,$(FSLIBSRC))
  873. #endif
  874.  
  875.          FONTLIBSRC = $(LIBSRC)/font
  876. UnsharedLibReferences(FONT,font,$(FONTLIBSRC))
  877.  
  878. #ifndef XawClientDepLibs
  879. #define XawClientDepLibs $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  880. #endif
  881. #ifndef XawClientLibs
  882. #define XawClientLibs $(XAWLIB) $(XMULIB) $(XTOOLLIB) $(XLIB)
  883. #endif
  884.  
  885. #ifndef FrescoClientDepLibs
  886. #define FrescoClientDepLibs $(DEPFRESCOLIB) $(DEPXLIB)
  887. #endif
  888. #ifndef FrescoClientLibs
  889. #define FrescoClientLibs $(FRESCOLIB) $(XLIB) MathLibrary
  890. #endif
  891.  
  892. #ifndef NeedDefaultDepLibs
  893. #define NeedDefaultDepLibs YES
  894. #endif
  895.  
  896. #if NeedDefaultDepLibs
  897. /*
  898.  * Individual libraries should override this
  899.  */
  900. #if HasSharedLibraries || defined(UseInstalled)
  901.           DEPLIBS = $(DEPXAWLIB) $(DEPXMULIB) $(DEPXTOOLLIB) $(DEPXLIB)
  902. #else
  903.           DEPLIBS = $(LOCAL_LIBRARIES)
  904. #endif
  905.          DEPLIBS1 = $(DEPLIBS)
  906.          DEPLIBS2 = $(DEPLIBS)
  907.          DEPLIBS3 = $(DEPLIBS)
  908. #endif /* NeedDefaultDepLibs */
  909.  
  910.  
  911. /*
  912.  * InstallAppDefaults - generate rules to install appliation default files 
  913.  * if the InstallAppDefFiles configuration parameter is set.
  914.  */
  915. #ifndef InstallAppDefaults
  916. #if InstallAppDefFiles
  917. #define    InstallAppDefaults(class)                    @@\
  918. InstallNamedTarget(install,class.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class)
  919. #else
  920. #define    InstallAppDefaults(class)
  921. #endif /* InstallAppDefFiles */
  922. #endif /* InstallAppDefaults */
  923.  
  924. /*
  925.  * InstallAppDefaultsLong - generate rules to install appliation default files 
  926.  * if the InstallAppDefFiles configuration parameter is set.
  927.  */
  928. #ifndef InstallAppDefaultsLong
  929. #if InstallAppDefFiles
  930. #define    InstallAppDefaultsLong(file,class)                @@\
  931. InstallNamedTarget(install,file.ad,$(INSTAPPFLAGS),$(XAPPLOADDIR),class)
  932. #else
  933. #define    InstallAppDefaultsLong(file,class)
  934. #endif /* InstallAppDefFiles */
  935. #endif /* InstallAppDefaultsLong */
  936.  
  937. /*
  938.  * MakeFontsDir - generate rules to build fonts.dir database.
  939.  */
  940. #ifndef MakeFontsDir
  941. #define MakeFontsDir(deplist)                        @@\
  942. all:: fonts.dir                                @@\
  943.                                     @@\
  944. fonts.dir:  deplist                            @@\
  945.     RunProgram(MKFONTDIR,.)                        @@\
  946.                                     @@\
  947. clean::                                    @@\
  948.     RemoveFile(fonts.dir)
  949. #endif /* MakeFontsDir */
  950.  
  951.  
  952. /*
  953.  * MakeFonts - generate rules to build font database.
  954.  */
  955. #ifndef MakeFonts
  956. #define MakeFonts()                            @@\
  957. all::  $(OBJS)                                @@\
  958.                                     @@\
  959. MakeFontsDir($(OBJS))                            @@\
  960.                                     @@\
  961. clean::                                    @@\
  962.     RemoveFiles(*.pcf *.pcf.Z)
  963. #endif /* MakeFonts */
  964.  
  965.  
  966. /*
  967.  * InstallFontObjs - generate rules to install font files
  968.  */
  969. #ifndef InstallFontObjs
  970. #define InstallFontObjs(objs,dest)                    @@\
  971. InstallMultipleFlags(objs,dest,$(INSTDATFLAGS))                @@\
  972.                                     @@\
  973. InstallTarget(install,fonts.dir,$(INSTDATFLAGS),dest)
  974. #endif /* InstallFontObjs */
  975.  
  976.  
  977. /*
  978.  * InstallFonts - generate rules to install font files
  979.  */
  980. #ifndef InstallFonts
  981. #define InstallFonts(dest)                        @@\
  982. InstallFontObjs($(OBJS),dest)
  983. #endif /* InstallFonts */
  984.  
  985.  
  986. /*
  987.  * InstallFontAliases - generate rules to install font aliases databases. 
  988.  */
  989. #ifndef InstallFontAliases
  990. #define InstallFontAliases(dest)                    @@\
  991. InstallTarget(install,fonts.alias,$(INSTDATFLAGS),dest)
  992. #endif /* InstallFontAliases */
  993.  
  994. #ifndef FontSrc
  995. #define FontSrc(basename) basename.bdf
  996. #endif
  997.  
  998. #ifndef FontBaseObj
  999. #define FontBaseObj(basename)basename.pcf
  1000. #endif
  1001.  
  1002. /*
  1003.  * InstallFontScale - generate rules to install font scale database.
  1004.  */
  1005. #ifndef InstallFontScale
  1006. #define InstallFontScale(dest)                        @@\
  1007. InstallTarget(install,fonts.scale,$(INSTDATFLAGS),dest)
  1008. #endif /* InstallFontScale */
  1009.  
  1010. /*
  1011.  * UncompressedFontTarget
  1012.  */
  1013. #ifndef UncompressedFontTarget
  1014. #define UncompressedFontTarget(basename)                @@\
  1015. FontBaseObj(basename):  FontSrc(basename)                @@\
  1016.     $(FONTC) $(FONTCFLAGS) $? -o $@
  1017. #endif /* CompressedFontTarget */
  1018.  
  1019. /*
  1020.  * CompressedFontTarget
  1021.  */
  1022. #ifndef CompressedFontTarget
  1023. #define CompressedFontTarget(basename)                    @@\
  1024. FontBaseObj(basename).Z:  FontSrc(basename)                @@\
  1025.     $(FONTC) $(FONTCFLAGS) $? | $(COMPRESS) > $@
  1026. #endif /* CompressedFontTarget */
  1027.  
  1028. #ifdef CompressAllFonts
  1029. #define FontTarget(basename) CompressedFontTarget(basename)
  1030. #define FontObj(basename) FontBaseObj(basename).Z
  1031. #else
  1032. #define FontTarget(basename) UncompressedFontTarget(basename)
  1033. #define FontObj(basename) FontBaseObj(basename)
  1034. #endif /* CompressAllFonts */
  1035.  
  1036. #ifndef MakeSimpleDoc
  1037. #define MakeSimpleDoc(file,srcs)                    @@\
  1038. all:: file.PS                                @@\
  1039.                                     @@\
  1040. file.PS:                                @@\
  1041.     $(TROFF) $(MSMACROS) $(XDOCMACROS) srcs 2> index.raw > file.nPS \@@\
  1042.     && $(MV) file.nPS $@                        @@\
  1043.                                     @@\
  1044. file.txt:                                @@\
  1045.     nroff $(MSMACROS) $(XDOCMACROS) srcs 2> index.raw > $@        @@\
  1046.                                     @@\
  1047. clean::                                    @@\
  1048.     $(RM) index.raw file.nPS file.PS file.txt
  1049. #endif
  1050.  
  1051. #ifndef MakeTblDoc
  1052. #define MakeTblDoc(file,srcs)                        @@\
  1053. all:: file.PS                                @@\
  1054.                                     @@\
  1055. file.PS:                                @@\
  1056.     $(TBL) $(XDOCMACROS) srcs | $(TROFF) $(MSMACROS) 2> index.raw > file.nPS \@@\
  1057.     && $(MV) file.nPS $@                        @@\
  1058.                                     @@\
  1059. file.txt:                                @@\
  1060.     $(TBL) $(XDOCMACROS) srcs | nroff $(MSMACROS) 2> index.raw | col > $@    @@\
  1061.                                     @@\
  1062. clean::                                    @@\
  1063.     $(RM) index.raw file.nPS file.PS file.txt
  1064. #endif
  1065.  
  1066. #ifndef MakeEqnDoc
  1067. #define MakeEqnDoc(file,srcs)                        @@\
  1068. all:: file.PS                                @@\
  1069.                                     @@\
  1070. file.PS:                                @@\
  1071.     $(TBL) $(XDOCMACROS) srcs | $(EQN) | $(TROFF) $(MSMACROS) 2> index.raw > file.nPS \@@\
  1072.     && $(MV) file.nPS $@                        @@\
  1073.                                     @@\
  1074. file.txt:                                @@\
  1075.     $(TBL) $(XDOCMACROS) srcs | neqn | nroff $(MSMACROS) 2> index.raw | col > $@ @@\
  1076.                                     @@\
  1077. clean::                                    @@\
  1078.     $(RM) index.raw file.nPS file.PS file.txt
  1079. #endif
  1080.  
  1081. #ifndef MakeDocIndex
  1082. #define MakeDocIndex(file,srcs)                        @@\
  1083. all:: file.idx.PS                            @@\
  1084.                                     @@\
  1085. file.idx.PS:                                @@\
  1086.     tail -1 index.raw > index.pageno                @@\
  1087.     grep -v '^.pn ' index.raw | sort -f '-t:' +1 -3 +0n -1n | awk -f $(DOCUTILSRC)/fixindex.awk | awk -f $(DOCUTILSRC)/block.awk > index.troff @@\
  1088.     cat srcs $(XIDXMACROS) index.troff | $(TROFF) -me > file.idx.nPS \@@\
  1089.     && $(MV) file.idx.nPS $@                    @@\
  1090.     $(RM) index.troff index.pageno                    @@\
  1091.                                     @@\
  1092. clean::                                    @@\
  1093.     $(RM) index.troff index.pageno file.idx.nPS file.idx.PS
  1094. #endif
  1095.  
  1096. #ifndef MakeLatexDoc
  1097. #if HasLatex
  1098. #define MakeLatexDoc(file,src)                         @@\
  1099. all:: file.PS                                @@\
  1100.                                     @@\
  1101. file.dvi: src                                  @@\
  1102.     $(LATEX) src                            @@\
  1103.                                     @@\
  1104. file.PS: file.dvi                            @@\
  1105.     $(DVIPS) -o file.nPS file && $(MV) file.nPS $@            @@\
  1106.                                     @@\
  1107. clean::                                 @@\
  1108.     RemoveFiles(file.nPS file.PS file.dvi file.log)            @@\
  1109.     RemoveFiles(file.aux file.toc file.lof file.lot)
  1110. #else /* HasLatex */
  1111. #define MakeLatexDoc(file,src)                         @@\
  1112. all::                                    @@\
  1113. file.PS: src                                @@\
  1114.     @echo "cannot make file.PS: no latex on this system"; exit 1
  1115. #endif /* HasLatex (else) */
  1116. #endif /* MakeLatexDoc */
  1117.